//
//  SecondViewController.m
//  NavgationController
//
//  Created by sr Liu on 2020/7/15.
//  Copyright © 2020 sr Liu. All rights reserved.
//

#import "SecondViewController.h"
#import "UIViewController+HideNavBar.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (instancetype)init {
    if (self = [super init]) {
        self.hiddenNavBarWhenPushed = YES;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)dealloc {
    NSLog(@"%s",__func__);
}

@end
